<?php

namespace Trawind\Remotes\Repositories\User;

use Trawind\Remotes\BaseRepository;
use Trawind\Basics\Enums\ServiceDomain;
use Trawind\Remotes\Contracts\Repositories\User\ResourceOperationsRepository;

/**
 * Class ResourcesRepositoryEloquent
 * @package Trawind\Remotes\Repositories\User
 */
class ResourceOperationsRepositoryEloquent extends BaseRepository implements ResourceOperationsRepository
{

    public $baseRoute='/resource-operations';
    

    /**
     * UserRemoteEloquent constructor.
     */
    public function __construct()
    {
        $this->domain = ServiceDomain::USER_DOMAIN();
    }


    public function all($columns = ['*'])
    {
         return $this->setUrl($this->baseRoute)->result();
    }


    public function find($id, $columns = ['*'])
    {
        return $this->setUrl($this->baseRoute.'/'.$id)->result();
    }


    public function create(array $attributes)
    {
        // return $this->setUrl('/users')
        //     ->setClientOptions(['form_params' => $attributes])
        //     ->result('POST');
    }
    
    
    
    public function update(array $attributes, $id)
    {
        
    }
}
